﻿/* 
 * 
 *    Project           A report class 
 *    Module Name       Excel Report 
 *    Author            Justin.Gu 
 *    Creation Date     [12/10/2016]      
 *     
 */
namespace Common
{
    
        public class FailRateStatistic
        {
            public int FailCount { get; set; }
            public int TotalCount { get; set; }
            public int PassCount { get { return TotalCount - FailCount; } }
            public double FailRate { get { if (TotalCount > 0) return FailCount * 1.0 / TotalCount; else return 0; } }
        }
    
}